﻿@model Catalog
@{
    ViewBag.Nav = Model.Key;
    var article = Model.Articles.FirstOrDefault();
}

<div class="page-item page-4">
    <h2>@Model.Name</h2>

    <div class="cms-content">
        @if (!string.IsNullOrEmpty(article.TitleImageUrl))
        {
            <img src="@article.TitleImageUrl" style="margin:0 auto;max-width:600px;display:block" />
        }
        @if (article.ArticleTexts.Count > 0)
        {
            @Html.Raw(article.ArticleTexts[0].Text)
        }
    </div>

</div>

